﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperJ.CMS.Models;
using SuperJ.CMS.Repositories;
using SuperJ.CMS.Interfaces.Repositories;
namespace SuperJ.CMS.Services
{
    public class AdminMenuService:SuperJ.CMS.Interfaces.Services.IAdminMenuService
    {

        private IAdminMenuRepository adminMenuRepository;

        public AdminMenuService(IAdminMenuRepository amr)
        {
            this.adminMenuRepository = amr;
        }
        public IEnumerable<SuperJ.CMS.Models.AdminMenuRoot> GetAdminMenu()
        {
            return adminMenuRepository.GetAdminMenus();
        }
    }
}
